package com.zmn.oms.dubbo.interfaces.statistics;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dio.normal.statistics.PayAmountStatQuery;
import com.zmn.oms.common.dro.statistics.OrderPayAmountStatDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 类描述：订单支付统计
 * @author heciqi
 * @date 2022/1/12 17:09
 */
@Api(
        value = "订单支付",
        tags = {"订单支付统计"}
)
public interface StatOrderPayRemoteService {

    @ApiOperation(
            value = "订单支付",
            response = ResponseDTO.class,
            tags = {"银联-中信订单支付统计"}
    )
    ResponseDTO<OrderPayAmountStatDRO> getCiticOrderPayAmountStat(@ApiParam(name = "payStartTime", required = true, value = "支付开始时间")
                                                                  @NotNull(message = "参数不能为空") Date payStartTime,
                                                                  @ApiParam(name = "payEndTime", required = true, value = "支付开始时间")
                                                                  @NotNull(message = "参数不能为空") Date payEndTime);

    @ApiOperation(
            value = "订单支付",
            response = ResponseDTO.class,
            tags = {"订单支付统计"}
    )
    ResponseDTO<OrderPayAmountStatDRO> getOrderPayAmountStatByQuery(PayAmountStatQuery query);
}
